package com.xzl.manger.dao;

import com.xzl.manger.model.Goods;
import com.xzl.manger.model.GoodsType;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface IGoodsDao {
    List<Goods> selectGoods(Goods g);
    List<GoodsType> selectTypes();
    Integer insertTypes(GoodsType gt);
    Integer insertGoods(Goods g);
    Integer updateGoods(Goods g);
    List<Goods> selectGoodsOnSale(Goods g);
    List<Goods> selectGoodsNoSale(Goods g);
    Integer downGoods(@Param("array") String[] id);
    Integer upGoods(@Param("array") String[] id);
}
